<?php
declare(strict_types=1);

namespace App\Enums;


class RoomPKEnum
{
    const ROOM_PK_CAMP_INITIATE = 0;
    const ROOM_PK_CAMP_MATCH = 1;

    const PIT_PK_CAMP_RED = 0;
    const PIT_PK_CAMP_BLUE = 1;
    const PIT_PK_CAMP_DRAW = -1;

    const GAME_STATUS_WAIT = 0; // 未匹配
    const GAME_STATUS_MATCH = 1; // 匹配中
    const GAME_STATUS_PLAY = 2; // 进行中


    const ROOM_PK_STATUS_NOTFOUND = -4; // 未找到
    const ROOM_PK_STATUS_TIMEOUT = -3; // 超时
    const ROOM_PK_STATUS_REJECT = -2; // 拒绝
    const ROOM_PK_STATUS_CANCEL = -1; // 取消
    const ROOM_PK_STATUS_WAIT = 0; // 匹配中 / 等待
    const ROOM_PK_STATUS_PLAYING = 1; // 开始
    const ROOM_PK_STATUS_FINISH = 2; // 完成

    const ROOM_PK_TYPE_DEFAULT = "default";
    const ROOM_PK_TYPE_SINGLE = "single";

    const NOT_ALLOW_ROOM_PK_STATUS = [
        self::ROOM_PK_STATUS_WAIT,
        self::ROOM_PK_STATUS_PLAYING,
    ];
}